<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Game Center</title>
<link rel="stylesheet" type="text/css" href="<s:property value="staticsRoot"/>/css/front-style.css"/>
<link href="http://www.7k7kjs.cn/qike_public/qike-sns.min.css" rel="stylesheet" />
<script src="http://www.7k7kjs.cn/js/lib/jquery/1.7.2/jquery-min.js"></script>
<script src="http://www.7k7kjs.cn/qike_public/qike-sns.min.js"></script>
<script type="text/javascript" src="<s:property value="staticsRoot"/>/js/jquery-1.8.3.min.js"></script>
<script>document.domain="7k7k.com";</script>
<link rel="stylesheet" type="text/css" href="<s:property value="staticsRoot"/>/css/common.css" media="screen" />
<script type="text/javascript" charset="utf-8" src="<s:property value="staticsRoot"/>/js/kindeditor.js"></script>
<script type="text/javascript" charset="utf-8" src="<s:property value="staticsRoot"/>/js/lang/zh_CN.js"></script>
<script type="text/javascript">
var editor;
$(document).ready(function(){
	$(".mess .i_text").click(function(){
		$(".mess li span").removeClass("dis_none");		
	});
});
KindEditor.ready(function(K) {
	editor = K.create('textarea[id="content"]', {
		allowFileManager : false,
		uploadJson : './upload.html',
		filePostName : 'filedata',
		urlType : 'domain',
		items : [
		'undo', 'redo', 'preview', '|', 
		'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'quickformat', '|',		 
		'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough', 'removeformat', '|', 
		'image', 'insertfile', 'table', 'hr', 'emoticons', 'anchor', 'link', 'unlink','|', 
		'about' 
		]
	});
});
</script>

</head>

<body> 
<s:include value="include/header.jsp"/>
<div class="adress">
    <span>UserId:<s:property value="#request.queryDO.userId"/></span>
</div>
<!--top-->

<div class="main">
	<div>
		
		<table width="100%" cellpadding="0" cellspacing="0" class="sj">
        	<tr>
        		<th align="center">rank</th>
            	<th align="center">gameId</th>
                <th align="left">更新时间</th>
            </tr>
            <s:iterator value="list" status="status" id="thread">
            <tr>
            	<td align="center"><s:property value="#thread.gameRank"/></td>
            	<td align="center"><a target="_blank" href="playedgame.html?queryDO.gameId=<s:property value="#thread.gameId"/>"><s:property value="gameMap.get(#thread.gameId).gameName"/></a></td>
            	<td align="center"><s:property value="#thread.gmtModified"/></td>
                
            </tr>
            </s:iterator>
		</table>
       <s:include value="include/pageNav.jsp"/>       
       
    </div>
    <!--right-->

    <div class="clearB"></div>    
	<form action="usergame.html" method="post" id="searchForm">
		<input type="hidden" name="queryDO.userId" value="<s:property value="queryDO.userId"/>"/>
		<input type="hidden" id ="toPage" name="page" value="<s:property value="queryDO.toPage"/>"/>
	</form>
</div>
<s:include value="include/foot.jsp"/>

</body>
<script language="javascript">
    function doSearch(pageNumber, totalItem){
		if(pageNumber <= 0){
			pageNumber = 1;
		}	
		$("#toPage").val(pageNumber); 
		$("#searchForm").submit(); 
	}
  
	
</script>
</html>
